import RoleTable from './roleTable'
import RoleManNew from './roleManNew'

import { useState } from 'react'
const Role_management = () => {
  //显示哪个组件，1是表格，2是新增
  const [state, setState] = useState(1)
  let com
  if (state == 1) {
    com = <RoleTable setState={setState}></RoleTable>
  }
  else {
    com = <RoleManNew setState={setState}></RoleManNew>
  }
  return <>
    {com}
  </>

};

export default Role_management;
